<?php

$product_config = $product_info[$_REQUEST["id"]];

/*
判断能否购买某个服务
*/
if($user_info!=false){
    $user_money=$user_info["money"];
}
if(floatval($product_config["money"])*$_REQUEST["number"]<=$user_money){
    //够钱
    $admin = $product_config["admin"];
    require("./app/product/".$product_config["buy"]);
}else{
    die(json_encode(array("code"=>400)));
}
?>